#ifndef INVOKEPROXY_H
#define INVOKEPROXY_H

#include <cJSON/cJSON.h>

#define FUNC_NAME_LEN 128

typedef cJSON *(*METHOD)(cJSON *args);

typedef struct method 
{
	char name[FUNC_NAME_LEN];
	unsigned int method_id;
	METHOD buiness_method;
	struct method *next;
}method_st;

extern void register_invoke_entry(method_st *node);
extern char* invoke(char *args);
extern void invoke_init(void);
extern void invoke_fini();
extern int inner_call(char *name, struct cJSON *cj_arg, struct cJSON *cj_ret);
#endif
